package com.whmskj.xjlhsc.mobie.personnelFile.service.impl;

import com.whmskj.xjlhbc.domain.Yg01employeefiles;
import com.whmskj.xjlhsc.mobie.personnelFile.mapper.PersonnelFileMapper;
import com.whmskj.xjlhsc.mobie.personnelFile.service.PersonnelFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class PersonnelFileServiceImpl implements PersonnelFileService {
    @Resource private PersonnelFileMapper mapper;

    @Override
    public List<Map<String, Object>> list(String keyword, String classs, String process, String typeOfWork, String gender, String employeeType, Boolean noProcessWorker, List<String> shiftTypes) {
        return mapper.list(keyword, classs, process, typeOfWork, gender, employeeType, noProcessWorker, shiftTypes);
    }

    @Override
    public Map<String, Object> summary() {
        return mapper.summary();
    }

    @Override
    public Yg01employeefiles detail(Long id) {
        return mapper.detail(id);
    }

    @Override
    public List<Map<String, Object>> filters() {
        return mapper.filters();
    }

    @Override
    public List<String> getPersonProcess(String workShop) {
        if ("全部".equals(workShop)){
            workShop=null;
        }
        return mapper.selectPersonProcess(workShop);
    }
}